package com.pattern.decorator.general;

/**
 * 装饰器的具体实现
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        doSomething();
    }

    public void doSomething(){
        System.out.println("装饰器添加的额外功能");
    }
}
